<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div id="app">
    {{1+2+3}}
    {{ isBeauty? '哇塞大美女': '你是个好姑娘'}}
    {{ msg }}
    {{ msg2 }}
    {{fn()}}
    <!-- {{ fn2() }} -->
    {{ parseInt('1235afda') }}
    <!-- {{ alert('你好世界') }} -->
  </div>
  <script src="./vue.js"></script>
  <script>
    var msg2 = '普通js变量';
    function fn2(){
      return '这是普通函数'
    }
    const vm = new Vue({
      el: '#app',
      data: {
        msg: '你好vue',
        isBeauty: false
      },
      methods: {
        changeMsg() {
          this.msg = '值'
        },
        fn(){
          return '这是函数return的值'
        }
      }
    })
    
  </script>
</body>

</html>